<script setup>
function login() {
  localStorage.setItem("loggedin", true)
}

function logout() {
  localStorage.removeItem("loggedin")
}
</script>

<template>
  <div>
    <button v-on:click="login">登录</button>
    <button v-on:click="logout">推出</button>
  </div>

</template>

<style scoped>

</style>